package com.lindom.dao;
import com.lindom.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import java.util.List;

//整合方式二：
public class UserDaoImpl2 extends SqlSessionDaoSupport implements UserMapper {

    public List<User> selectUser() {
        UserMapper mapper = getSqlSession().getMapper(UserMapper.class);
        List<User> list = mapper.selectUser();
        return list;
    }
}
